const app = {
  state: {
    cartList: [{
      isCheck: false,
      title: '东野圭吾：白夜行（2017版)',
      img: '../../static/icon/book.jpg',
      num: 1,
      unitPrice: 55,
      price: 55
    }]
  },
  mutations: {
    ADD_CRT: (state, data) => {
      state.cartList.push(data)
    }

  },
  actions: {
    addCar({commit}, data) {
      commit('ADD_CRT', data)
    },
  }
}

export default app
